package schach.client.view;

import java.awt.Button;

public class Knopf extends Button
{
	private int x;
	private int y;
	private final int offsetX = 500;
	private final int offsetY = 530;
	private final int sizeX = 50;
	private final int sizeY = 50;
	private static final char[] buchstabe = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'};
	
	public Knopf (int x, int y)
	{
		super(buchstabe[x] + "" + (y+1));
		this.x = x;
		this.y = y;
		this.setBounds(offsetX + (x*sizeX), offsetY - (y*sizeY), sizeX, sizeY);
	}
	public String toString(){
		return x + "" + y;
	}
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}

}
